﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterALSafa.Master" AutoEventWireup="true" CodeBehind="Departments.aspx.cs" Inherits="School.Pages.Organization.Departments" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<h1>الإدارات</h1>
    <table width="100%">
        <tr>
            <td style="width: 74px">اسم الإدارة</td>
            <td>
                <asp:TextBox ID="TxtName" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style="width: 74px">المجمع</td>
            <td>
                <asp:DropDownList ID="LstCampuse" runat="server">
                </asp:DropDownList>
            </td>
        </tr>        
        <tr>
            <td style="width: 74px">الوصف</td>
            <td>
                <asp:TextBox ID="TxtDescription" runat="server" TextMode="MultiLine"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:Button ID="Button1" runat="server" Text="حفظ" onclick="Button1_Click" />
            </td>
        </tr>
    </table>
    
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
    Width="100%" CssClass="Grid" HeaderStyle-CssClass="GridHeaderFooter" FooterStyle-CssClass="GridHeaderFooter"
    PagerStyle-CssClass="GridPager" AlternatingRowStyle-CssClass="GridItemAltername">
        <Columns>
            <asp:BoundField DataField="Id" HeaderText="#" />
            <asp:BoundField DataField="Name" HeaderText="الأسم" />
            <asp:BoundField DataField="Description" HeaderText="الوصف" />
            <asp:BoundField DataField="CName" HeaderText="المجمع" />
            <asp:HyperLinkField DataNavigateUrlFields="Id" 
                DataNavigateUrlFormatString="Departments.aspx?Id={0}" Text="تعديل" />
        </Columns>
    </asp:GridView>
</asp:Content>
